﻿using BLL.ShanXiZH;
using System.Net.Http;
using System.Web.Http;

namespace SanFangWebApi.Controllers
{
    public class TransaController : BaseController
    {

        /// <summary>
        /// 获取用户信息 api/Transa/GetUserInfo
        /// </summary>
        /// <param name="reqData"></param>
        /// <returns></returns>
        [HttpPost]
        public HttpResponseMessage GetUserInfo(dynamic reqData)
        {
            return GetHttpResponseMessage(ProcessBuiness.DistributeBusiness(reqData, BLL.Business.TradeCode.缴费查询));
        }

        /// <summary>
        /// 交费 api/Transa/Pay
        /// </summary>
        /// <param name="reqData"></param>
        /// <returns></returns>
        [HttpPost]
        public HttpResponseMessage Pay(dynamic reqData)
        {
            return GetHttpResponseMessage(ProcessBuiness.DistributeBusiness(reqData, BLL.Business.TradeCode.缴费业务));
        }
    }
}
